import 'package:flutter/material.dart';

/**
 * Scaffold 与 Text控件
 */
class TestWidget extends StatelessWidget {
  const TestWidget({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        ///顶部标题
        title: Text(
          'Text 组件 dmeo',
          style: TextStyle(
            fontSize: 20,
            color: Colors.greenAccent,
          ),
        ),

        ///标题居中
        centerTitle: true,

        ///背景颜色
        backgroundColor: Colors.red,
      ),
    );
  }
}
